package rmi.drs.common.interfaces;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Hashtable;

public interface RemoteServer extends Remote {
	
	public String getServerName() throws RemoteException;

	public boolean buy(String customerId, String itemId, int numberOfItem) throws RemoteException;
	
	public boolean returnItems(String customerId, String itemId, int numberOfItem) throws RemoteException;
	
	public boolean checkStock(String itemId) throws RemoteException;
	
	public void flushToFile() throws RemoteException;

}
